/*
 * Created by: vadikv
 * Created: Wednesday, March 05, 2008
 */

using System;
using OneDayModel.Interfaces;

namespace OneDayModel.Model.Repository
{
    public class RoleAttribute : IRoleAttribute
    {
        private readonly string name = "";
        private readonly string displayName;
        private readonly bool required = false;
        private readonly bool visible = false;
        private readonly Type type;
        private readonly string[] valuesRange;

        public RoleAttribute(string name, string displayName, bool required, bool visible,
            Type type, string[] valuesRange)
        {
            this.name = name;
            this.displayName = displayName;
            this.required = required;
            this.visible = visible;
            this.type = type;
            this.valuesRange = valuesRange;
        }

        public string Name
        {
            get { return name; }
        }

        public bool Required
        {
            get { return required; }
        }

        public string DisplayName
        {
            get { return displayName; }
        }

        public bool Visible
        {
            get { return visible; }
        }

        public Type Type
        {
            get { return type; }
        }

        public string[] ValuesRange
        {
            get { return valuesRange; }
        }
    }
}